package com.bruce.learnrecycler.kotlin.ui.activity

import android.app.Activity
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.bruce.learnrecylerview.app.R
import com.github.bluzwong.kotlin_x_weapon.SwipeBackActivitySupport

/**
 * Created by Bruce-Home on 2015/9/9.
 */
public class NextActivity : AppCompatActivity(), SwipeBackActivitySupport {
    override fun provideActivity(): Activity {
        return this
    }
    //    override fun provideActivity(): Activity {
//        return this
//    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super<AppCompatActivity>.onCreate(savedInstanceState)
        this setContentView R.layout.activity_next
        initSwipeBack()
    }
    override fun finish() {
        super<AppCompatActivity>.finish()
        onSwipeFinish()
    }
}